package com.example.myerp.controller;


import com.example.myerp.pojo.Inbound_Scheduling;
import com.example.myerp.pojo.S_gather_details;
import com.example.myerp.service.S_gather_detailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhuxingyu
 * @since 2021-08-20
 */
@RestController
@RequestMapping("/purchase/s_gather_details")
public class S_gather_detailsController {

    @Autowired
    S_gather_detailsService service;


    @RequestMapping("/byParentId")
    public List<S_gather_details> selDetails(long parentId) {
        return service.selDetails(parentId);
    }


    @RequestMapping("/InbSche")
    public List<Inbound_Scheduling> selInSch(Long parentId) {
        return service.selInSch(parentId);
    }
}
